Class_name = "CTurret"
object_name = "TurretBreguet14_1"

[COCKPIT_LIMITS]
x= -0.3, 0.3
y= -0.25, 0.2
z= -0.3, 0.3
[END]

VisualImage=0,"graphics/planes/Breguet14/Breguet14_C1_low.mgm",1
VisualImage=1,"graphics/planes/Breguet14/Breguet14_C1.mgm",0

CollisionBody="graphics/planes/Breguet14/Breguet14_T.col"

VisualRadius=2.0

mp_site=true

[attach=0]
	position = 0.0, 0.29, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerBreguet14.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.bin"

SoundScript="LuaScripts/Breguet14_T.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

// transfer_number	= quality group (variable num)
// 100	= med 0 (0)
// 101	= med 0 (1)
// 102	= med 1 (0)
// 103	= med 1 (1)
// 104	= med 2 (0)
// 105	= med 2 (1)

// 000	= low 0 (0)
// 001	= low 0 (1)
// 002	= low 0 (2)
// 003	= low 0 (3)
// 004	= low 1 (0)
// 005	= low 1 (1)
// 006	= low 1 (2)
// 007	= low 1 (3)
// 008	= low 2 (0)
// 009	= low 2 (1)
// 010	= low 2 (2)
// 011	= low 2 (3)

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)
FetchArgVal=204,000,0,"Smooth_wrap" //compass
FetchArgVal=205,001,0,"Smooth_wrap" //compass bank
FetchArgVal=206,002,0,"Smooth_wrap" //compass pitch
FetchArgVal=402,003,0,"Smooth_clamp" //pedals
FetchArgVal=406,004,0,"Smooth_clamp" //stick pitch
FetchArgVal=407,005,0,"Smooth_clamp" //stick bank
FetchArgVal=2501,006,0,"Smooth_clamp" //fuel gauge
FetchArgVal=8512,007,0,"Smooth_wrap" //clocks minutes
FetchArgVal=3102,100,0,"Smooth_clamp" //tachometer
FetchArgVal=3172,101,0,"Smooth_clamp" //termometer
FetchArgVal=8201,102,0,"Smooth_clamp" //anemometer
FetchArgVal=8251,103,0,"Smooth_clamp" //altimeter
FetchArgVal=8511,104,0,"Smooth_wrap" //clocks hour
FetchArgVal=9004,008,0,"Smooth_wrap" //bomb lever
FetchArgVal=12900,009,0,"Smooth_clamp" //bombholder, photo, radio hide animation
FetchArgVal=22010,010,0,"Smooth_clamp" //bomb bay doors
FetchArgVal=60210,011,0.82,"Smooth_clamp" //cockpit lighting


[TurretsPos=1]
	position = 0.0, 0.0, 0.0
	PosMoveArg = 21300

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -180.0
		SectorAngleMax = 180.0

		AngularSpeed   = 60.0

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 21001

		Point = -0.151111, 0.758423, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = true
		
		IsFullAngle = true

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -43.0
		SectorAngleMax = 0.0
		
		AngularSpeed   = 30.0

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 21002

		Point = 0.6355,0.077867,0.0
		Axis = 0.0, 0.0, 1.0

		IsFullAngle = true

		NextLinkedId = 2

		SoundNumber = 1
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007
		
		Point = 0.0, 0.0, 0.0
		Axis  = 0.0, 0.0, 1.0
		
		IsFullAngle = true
		
		DependFromPrevious = true
		
		PrevLinkedId = 1

		SoundNumber = 2
	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	[GunAnimation=1]
		FireArg = 9050
	[end]

	FireLightArg=60220

	relativeBotStand = -0.01, -0.575, 0.0
	relativeBotSit = 0.35, -0.7, 0.0
	relativeBotDead = 0.35, -0.7, 0.0
	TransitionStandPower = 0.75
	TransitionDeadPower = 1.0


	BotAttachJointId = 0
	BotFirstAnimJointId = 2 
	BotSecondAnimJointId = 1

	SightPosition = 0.0, 0.5, 0.0

	defaultDirection = 0.951, -0.309, 0.0

	CamDisplacement = -0.35, 0.231, 0.1315
[end]

[TurretsGun=5]

	Displacement = 0.6653, 0.0734, -0.1297

	GunType = "LuaScripts/WorldObjects/Weapons/Lewis.txt"

	ReLoadingStagesTime = 1.0, 3.0, 1.0, 0.3
 
	MaxRoundsInMagazine = 97
	RoundsInMagazine = 97
	MaxReservedMagazines = 4
	ReservedMagazines = 4
	MaxMisFiresInMagazine = 1
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 1
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9181
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	FiringPinPositionArgIdx = 9016

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 5.2, 1.95, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 180.0
	
	NumOfAnimations = 4

	BushCoord = -0.1369, 0.0734, -0.1037 
	BushSpeed = 0.0, 0.0, 1.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_MK7.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_WMK1_AP.txt"
	[end]

	SoundNumber = 1

[end]


[TurretsGun=6]

	Displacement = 0.6653, 0.0734, 0.1297

	GunType = "LuaScripts/WorldObjects/Weapons/Lewis.txt"

	ReLoadingStagesTime = 1.0, 3.0, 1.0, 0.3
 
	MaxRoundsInMagazine = 97
	RoundsInMagazine = 97
	MaxReservedMagazines = 4
	ReservedMagazines = 4
	MaxMisFiresInMagazine = 1
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 2
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9182
	FlashAnimationArgIdx = 9050
	TriggerPositionArgIdx = 9001
	RoundsInMagazineArgIdx = 9056
	HideAmmunitionArgIdx = 9055
	ReLoadingArgIdx = 9054
	AzimuthDeviationArgIdx = 9022
	ElevationDeviationArgIdx = 9023
	FiringPinPositionArgIdx = 9026

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 5.2, 1.95, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 180.0
	
	NumOfAnimations = 4

	BushCoord = -0.1369, 0.0734, 0.1557
	BushSpeed = 0.0, 0.0, 1.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_MK7.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_WMK1_AP.txt"
	[end]

	SoundNumber = 2

[end]

SightPos = 0.0, 0.2, 0.0
PositionChangeTime = 1.0
ReloadDelay = 0.3
ShootOutSoundID = 0

BotRotaionValueZ = 0.0
LegsParameter = 0.0

BotMaxSecondAngle = 0.0
BotMinSecondAngle = -43.0

BotMaxFirstAngle  = 45.0
BotMinFirstAngle  = -45.0 

FirstToSecondInterp = 0.0

TotalSectorLimits = 11

//   ,         
SectorLimits0 = -180.0, -120.0, +13.0, +90.0
SectorLimits1 = -120.0, -95.0, +11.0, +90.0
SectorLimits2 = -30.0, -25.0, -30.0, +90
SectorLimits3 = -25.0, -20.0, -33.0, +90.0
SectorLimits4 = -20.0, -16.0, -24.0, +90.0
SectorLimits5 = -16.0, +16.0, -5.0, +90.0
SectorLimits6 = +16.0, +20.0, -24.0, +90.0
SectorLimits7 = +20.0, +25.0, -33.0, +90.0
SectorLimits8 = +25.0, +30.0, -30.0, +90.0
SectorLimits9 = +95.0, +120.0, +11.0, +90.0
SectorLimits10 = +120.0, +180.0, +13.0, +90.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
